export const getPagesList = (params) => {
  return http({
    method: "GET",
    url: `/pages/list`,
    params,
    prefix: "DESIGNER_URL",
  });
};

export const getPagesAll = (params) => {
  return http({
    method: "GET",
    url: `/pages/all`,
    params,
    prefix: "DESIGNER_URL",
  });
};

export const getPagesInfo = (params) => {
  return http({
    method: "GET",
    url: `/pages/info`,
    params,
    prefix: "DESIGNER_URL",
  });
};

export const createPages = (data) => {
  return http({
    method: "post",
    url: `/pages/create`,
    data,
    prefix: "DESIGNER_URL",
  });
};


export const setOffPages = (data) => {
  return http({
    method: "put",
    url: `/pages/setOff`,
    data,
    prefix: "DESIGNER_URL",
  });
};



export const editPages = (data) => {
  return http({
    method: "put",
    url: `/pages/edit`,
    data,
    prefix: "DESIGNER_URL",
  });
};

export const deletePages = (data) => {
  return http({
    method: "delete",
    url: `/pages/delete/${data._id}`,
    prefix: "DESIGNER_URL",
  });
};
